package com.example.designpattern.template;

import com.example.designpattern.delegate.CheckTypeEnum;
import org.springframework.stereotype.Service;

/**
 * @author long
 * @date 2024/11/16 22:02
 */
@Service
public class SendCheckServiceImpl extends AbstractCheckServiceImpl{

    @Override
    public void doCheck(String context) {
        // 模拟执行送检逻辑
        System.out.println("-------------执行送检逻辑-------------");
    }

    @Override
    public void validateArgs(String args) {
        System.out.println("校验送检参数");
    }

    @Override
    public CheckTypeEnum checkType() {
        return CheckTypeEnum.SEND_CHECK;
    }

}
